package com.tvunetworks.center.user.config.mybatis;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author lebron
 * @ClassName: MyMybatisProperties
 * @Description: Mybatis参数
 *  2018年4月11日
 */
@Configuration
@ConfigurationProperties(prefix = MyMybatisProperties.MYBATIS_PREFIX)
@PropertySource("classpath:mybatis.properties")
public class MyMybatisProperties {
    /**
     * MYBATIS_PREFIX
     */
    public   static final   String MYBATIS_PREFIX = "mybatis";

    private String mapperLocations;
    private String configLocation;
    private String typeAliasesPackage;

    public String getMapperLocations() {
        return "classpath:" + mapperLocations;
    }

    public void setMapperLocations(String mapperLocations) {
        this.mapperLocations = mapperLocations;
    }

    public String getConfigLocation() {
        return "classpath:" + configLocation;
    }

    public void setConfigLocation(String configLocation) {
        this.configLocation = configLocation;
    }

    public String getTypeAliasesPackage() {
        return typeAliasesPackage;
    }

    public void setTypeAliasesPackage(String typeAliasesPackage) {
        this.typeAliasesPackage = typeAliasesPackage;
    }

}
